<?php
namespace App\Http\Controllers\Api;

use App\Model\Users;
use App\Services\Facades\Sms;
use Illuminate\Http\Request;

class UserController extends BaseController{

    /**
     * 获取用户基本信息
     * @return \Illuminate\Http\Response
     */
    public function user(){
        $user = auth()->user();
        return $this->success($user);
    }

    /**
     * 退出登录
     * @return \Illuminate\Http\Response
     */
    public function logout(){
        auth()->logout();
        return $this->success();
    }

}
